package com.sk.imitationnetease

import android.app.Application
import androidx.multidex.MultiDexApplication
import com.sk.skextension.utils.explain.Explain

/**
 * App启动时启动，生命周期贯穿app全局
 */
class MyApplication : MultiDexApplication() {
    companion object {
        @Explain(explainValue = "全局Context")
        lateinit var globalContext: Application

        @Explain(explainValue = "启动开始时间")
        var startTime:Long = 0L
    }

    override fun onCreate() {
        super.onCreate()
        startTime = System.currentTimeMillis()
        globalContext = this
    }
}